package org.cargloss.cp.controller.modul.menus;

import org.cargloss.cp.model.Menus;

import util.hibernate.DAO;

import com.opensymphony.xwork2.ActionSupport;

public class ActionObject extends ActionSupport {
	/**
         *
         */
	private static final long serialVersionUID = 1L;

	private Menus menus;
	private int id;

	public String execute() {
		DAO<Integer> dao = new DAO<Integer>();
		dao.createCriteria(Menus.class);
		dao.addFilter("eq", "id", id);
		menus = (Menus) dao.findUnique();
		dao.close();
		return SUCCESS;
	}

	public Menus getMenus() {
		return menus;
	}

	public void setMenus(Menus menus) {
		this.menus = menus;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
